<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
<#assign base=request.contextPath  />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>
    <link rel="stylesheet" href="../frame/layui/css/layui.css">
    <link rel="stylesheet" href="../frame/static/css/style.css">
    <link rel="icon" href="../frame/static/image/code.png">
    <script type="text/javascript" src="../frame/layui/layui.all.js"></script>
<#--<script type="text/javascript" src="${base}/js/zhang.js"></script>-->
<#--<script type="text/javascript" src="../frame/layui/layui.all.js"></script>-->
    <script type="text/javascript" src="${base}/js/zhang.js"></script>
    <script type="text/javascript" src="../frame/layui/layui.all.js"></script>
    <script src="${base}/js/jquery-1.8.3.min.js"></script>

    <style type="text/css">
        .layui-form-select dl dd.layui-this {
            background-color: #1E9FFF;
            color: #fff;
        }
        img{
            width: 160px;
            height: 110px;
        }
    </style>
</head>
<body class="body">
<form class="layui-form" action="" >

    <input type="hidden" id="id"/>

    <div class="layui-form-item">
        <label class="layui-form-label">年检</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="annual" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">保险</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="insure" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">里程数</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="carKm" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">故障记录</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="fault" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">维修记录</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="service" readonly="readonly">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input lay-verify="required"  placeholder="" class="layui-input " id="flagto" readonly="readonly">
        </div>
    </div>

</form>
<script src="../frame/layui/layui.all.js" charset="utf-8"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
                ,layer = layui.layer
                ,layedit = layui.layedit
                ,laydate = layui.laydate;


        //监听提交
        form.on('submit(demo1)', function(data){
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });

    });
    //修改
    <#--function check() {-->

        <#--var jsonDate = {};-->

        <#--jsonDate.ptName = $("#ptName").val();-->
        <#--jsonDate.carBrand = $("#carBrand").val();-->
        <#--jsonDate.carKm = $("#carKm").val();-->
        <#--jsonDate.carSize = $("#carSize").val();-->
        <#--jsonDate.grounding = $("#grounding").val();-->
        <#--jsonDate.carNumber = $("#carNumber").val();-->
        <#--jsonDate.id = $("#id").val();-->

        <#--$.ajax({-->
            <#--type: "POST",-->
            <#--url: "${base}/caradmin/updatecheck",-->
            <#--data: {"param": JSON.stringify(jsonDate)},-->
            <#--success: function (data) {-->
                <#--if(data){-->
                    <#--var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引-->
                    <#--parent.layer.close(index); //再执行关闭-->
                    <#--parent.location.reload();-->
                <#--}-->


            <#--}-->
        <#--})-->
    <#--}-->
</script>
</body>
</html>